﻿using Microsoft.Extensions.DependencyInjection;
using TimServerSDK.Core;
using Volo.Abp;
using Volo.Abp.Autofac;
using Volo.Abp.Modularity;
using Volo.Abp.Settings;

namespace TimServerSDK.Abp.Test
{
    [DependsOn(
        typeof(AbpAutofacModule),
        typeof(AbpSettingsModule),
        typeof(AbpTestBaseModule)
        )]
    [DependsOn(typeof(TimServerSDKAbpModule))]
    public class TimServerSDKTestAbpModule : AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            context.Services.Configure<TimServerOptions>(options =>
            {
                options.AppId = TimServerSDKConsts.AppId;
                options.AppSecret = TimServerSDKConsts.AppSecret;
                options.Identifier = TimServerSDKConsts.Identifier;
            });
        }
    }
}
